home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Snippets / Development Tools & Languages / PICTDialog / MDialogs.cp < prev    next >
Encoding:
Text File  |  1992-07-15  |  817 b   |  25 lines  |  [TEXT/MPS ]

  1. // Copyright © 1991 Apple Computer, Inc. All rights reserved.
  2.  
  3. #include "UDialogs.h"
  4.  
  5.  
  6. TDialogsApplication    *gDialogsApplication;
  7.  
  8.  
  9. #pragma segment Main
  10. void main()
  11. {
  12.     InitToolBox();                                                    //    essential toolbox and utilities
  13.     if (ValidateConfiguration(&gConfiguration)){            //    make sure we can run
  14.         InitUMacApp(8);                                             //    8 calls to MoreMasters
  15.         InitUTEView();                                                // prevent code strip
  16.         InitUDialog();                                                // prevent code strip
  17.         gDialogsApplication = new TDialogsApplication;    //    create an application object
  18.         FailNIL(gDialogsApplication);                            //    make sure enough memory
  19.         gDialogsApplication->IDialogsApplication();        //    initialize the application
  20.         gDialogsApplication->Run();                            //    run the application
  21.     }
  22.     else
  23.         StdAlert(phUnsupportedConfiguration);            //    tell user we can't run
  24. }
  25.